import Vue from 'vue'
import Vuex from 'vuex'
import router, {resetRouter} from "@/router";

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
        currentPathName: '',
        userId: '',
        userName: '',
        avatarUrl: ''
    },
    mutations: {
        setPath(state, payload) {
            state.currentPathName = payload;
        }
    }
})

export default store
